<?php 
namespace app\api\controller;

class Base
{
    protected $param;
    
    public function __construct()
    {
        $this->param = input();
    }
    
    /**
     * 接口统一响应格式
     * @param unknown $data
     * @return Json
     */
    protected function response($data){
        $data['timestamp'] = time();
        return json($data);
    }
}

?>